local is_status_ok, alpha = pcall(require, "alpha")

if not is_status_ok then
  print("alpha plugin not found")
  return
end

local dashboard = require("alpha.themes.dashboard")

-- alpha-nvim默认只绑定部分快捷键，其他需要自己完成
-- https://github.com/goolord/alpha-nvim/issues/108
dashboard.section.buttons.val = {
  dashboard.button("e", "  New file", ":ene<CR>"),
  dashboard.button("o", "  Open directory", ":NvimTreeOpen "),
  dashboard.button("f", "󰈞  Find file", ":Telescope find_files<CR>"),
  dashboard.button("r", "  Recent file", ":Telescope oldfiles<CR>"),
  dashboard.button("q", "󰐥  Quit", ":qa<CR>"),
}

alpha.setup(dashboard.config)
